x86/Viridian: fix error code use
authorJan Beulich <jbeulich@suse.com>
Thu, 6 Jan 2022 13:11:58 +0000 (14:11 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 6 Jan 2022 13:11:58 +0000 (14:11 +0100)
commit481b8bb3311d3a962c795127b7d968d743466654
tree065e0c4216b9ea4bfb55db5ff57f4cc8eb465f5a
parent84977e8b53935de9a1123f677213f1b146843a0e
x86/Viridian: fix error code use

Both the wrong use of HV_STATUS_* and the return type of
hv_vpset_to_vpmask() can lead to viridian_hypercall()'s
ASSERT_UNREACHABLE() triggering when translating error codes from Xen
to Viridian representation.

Fixes: b4124682db6e ("viridian: add ExProcessorMasks variants of the flush hypercalls")
Fixes: 9afa867d42ba ("viridian: add ExProcessorMasks variant of the IPI hypercall")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Paul Durrant <paul@xen.org>
master commit: 857fee77845be0c5c35fd51bac64455369d32a6f
master date: 2021-11-24 11:09:56 +0100
xen/arch/x86/hvm/viridian/viridian.c